package org.edu.modules.research.rbase.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;
import java.util.Date;

/**
 * entity-教科研组织表
 */
@TableName
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="教科研组织表对象", description="ve_jky_organize")
public class VeJkyOrganize extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "组织机构名称")
    @Length(max = 100)
    private String name;

    @TableField
    @ApiModelProperty(value = "教研组长id")
    private Integer masterUid;

    @TableField
    @ApiModelProperty(value = "审批人")
    private Integer markUid;

    @TableField
    @ApiModelProperty(value = "说明")
    @Length(max = 300)
    private String mark;

    @TableField
    @ApiModelProperty(value = "成立时间")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd")
    private Date foundTime;

    @TableField
    @ApiModelProperty(value = "添加时间")
    @JsonFormat(timezone="GMT+8",locale="zh",  pattern="yyyy-MM-dd hh:mm:ss")
    private Date createTime;
}
